// 布局父组件
import Layout from '@/views/layout.vue'

// 管理员管理
// const examinationManagement = r => require.ensure([], () => r(require('../views/area/examinationManagement.vue')), 'area')
const adminUser = r => require.ensure([], () => r(require('../views/area/adminUser.vue')), 'area')
const stafferInvigilater = r => require.ensure([], () => r(require('../views/area/stafferInvigilater.vue')), 'area')
const stafferWait = r => require.ensure([], () => r(require('../views/area/stafferWait.vue')), 'area')

// 考场管理
const sequenceSchool = r => require.ensure([], () => r(require('../views/area/sequenceSchool.vue')), 'area')
const sequenceSchoolStep1 = r => require.ensure([], () => r(require('../views/area/sequenceSchoolStep1.vue')), 'area')
const sequenceSchoolStep2 = r => require.ensure([], () => r(require('../views/area/sequenceSchoolStep2.vue')), 'area')
const sequenceSchoolStep3 = r => require.ensure([], () => r(require('../views/area/sequenceSchoolStep3.vue')), 'area')
const smartSchool = r => require.ensure([], () => r(require('../views/area/smartSchool.vue')), 'area')
const examinationRoom = r => require.ensure([], () => r(require('../views/area/examinationRoom.vue')), 'area')
const setExaminationRoom = r => require.ensure([], () => r(require('../views/area/setExaminationRoom.vue')), 'area')

// 准考证管理
const admissionTicket = r => require.ensure([], () => r(require('../views/area/admissionTicket.vue')), 'area')
const proctorTicket = r => require.ensure([], () => r(require('../views/area/proctorTicket.vue')), 'area')

// 考点
const examinationSite = r => require.ensure([], () => r(require('../views/area/examinationSite.vue')), 'area')
const createSite = r => require.ensure([], () => r(require('../views/area/createSite.vue')), 'area')

export default [
  {
    path: '/',
    component: Layout,
    children: [
      // {
      //   path: '/examinationManagement',
      //   name: 'examinationManagement',
      //   component: examinationManagement
      // },
      {
        path: '/adminUser',
        name: 'adminUser',
        component: adminUser,
        meta: {
          name: 'user'
        }
      },
      {
        path: '/staffer/invigilater',
        name: 'stafferInvigilater',
        component: stafferInvigilater,
        meta: {
          name: 'user'
        }
      },
      {
        path: '/staffer/waiting',
        name: 'stafferWait',
        component: stafferWait,
        meta: {
          name: 'user'
        }
      },
      {
        path: '/sequenceSchool',
        name: 'sequenceSchool',
        component: sequenceSchool,
        meta: {
          name: 'arrangement'
        }
      },
      {
        path: '/sequenceSchoolStep1',
        name: 'sequenceSchoolStep1',
        component: sequenceSchoolStep1,
        meta: {
          name: 'arrangement'
        }
      },
      {
        path: '/sequenceSchoolStep2',
        name: 'sequenceSchoolStep2',
        component: sequenceSchoolStep2,
        meta: {
          name: 'arrangement'
        }
      },
      {
        path: '/sequenceSchoolStep3',
        name: 'sequenceSchoolStep3',
        component: sequenceSchoolStep3,
        meta: {
          name: 'arrangement'
        }
      },
      {
        path: '/smartSchool',
        name: 'smartSchool',
        component: smartSchool,
        meta: {
          name: 'arrangement'
        }
      },
      {
        path: '/admissionTicket',
        name: 'admissionTicket',
        component: admissionTicket,
        meta: {
          name: 'document'
        }
      },
      {
        path: '/proctorTicket',
        name: 'proctorTicket',
        component: proctorTicket,
        meta: {
          name: 'document'
        }
      },
      {
        path: '/examinationSite',
        name: 'examinationSite',
        component: examinationSite,
        meta: {
          name: 'venue'
        }
      },
      {
        path: '/createSite',
        name: 'createSite',
        component: createSite,
        meta: {
          name: 'venue'
        }
      },
      {
        path: '/examinationRoom',
        name: 'examinationRoom',
        component: examinationRoom,
        meta: {
          name: 'venue'
        }
      },
      {
        path: '/setExaminationRoom',
        name: 'setExaminationRoom',
        component: setExaminationRoom,
        meta: {
          name: 'venue'
        }
      }
    ]
  }
]
